home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1997-02-05 | 3.5 KB | 120 lines |
- 10 'LOOPSKY - Loop Skywire Dimensions - 05 FEB 97 rev.
- 20 IF EX$=""THEN EX$="EXIT"
- 30 CLS:KEY OFF
- 40 PI=3.14159
- 50 U$="#####.##"
- 60 V$="######.#"
- 70 COLOR 7,0,1
- 80 GOTO 140
- 90 '
- 100 '.....clear bottom of screen
- 110 VIEW PRINT LN TO 24:CLS:VIEW PRINT:LOCATE LN
- 120 RETURN
- 130 '
- 140 '.....start
- 150 CLS
- 160 COLOR 15,2
- 170 PRINT " LOOP SKYWIRE DIMENSIONS";TAB(57)"by George Murphy VE3ERP ";
- 180 COLOR 1,0:PRINT STRING$(80,223);:COLOR 7,0
- 190 LN=CSRLIN
- 200 GOSUB 680
- 210 PRINT:COLOR 0,7:LOCATE ,2
- 220 PRINT " Press number for:";
- 230 PRINT " <1> Dimensions in metres <2> Dimensions in feet <0> Exit "
- 240 COLOR 7,0
- 250 A$=INKEY$:IF A$=""THEN 250
- 260 IF A$="0"THEN CLS:RUN EX$
- 270 IF A$="1"THEN UM=0.3048:UM$=" m":GOTO 310
- 280 IF A$="2"THEN UM=1:UM$=" ft":GOTO 310
- 290 GOTO 250
- 300 '
- 310 '.....inputs
- 320 GOSUB 100
- 330 INPUT " ENTER: Lowest frequency of operation (MHz)...........";F
- 340 GOSUB 100
- 350 L=1005/F*UM 'length
- 360 RC=L/PI/2 'radius of circle
- 370 AC=PI*RC^2 'area of circle
- 380 PRINT " Lowest frequency of operation..........";USING U$;F;:PRINT " MHz"
- 390 PRINT " Total length of wire in loop...........";USING U$;L;:PRINT UM$
- 400 PRINT " Radius of a circular loop..............";USING U$;RC;:PRINT UM$
- 410 PRINT " Area of a circular loop................";USING U$;AC;:PRINT UM$+"<UNK! {FD22}>;
- 420 PRINT " ( Area Factor = 100% )
- 430 COLOR 0,7:LOCATE ,22:PRINT " - R E G U L A R P O L Y G O N S - ":COLOR 7,0
- 440 PRINT TAB(2)"No.of";TAB(14)"Length of";TAB(26);"Centre to";
- 450 PRINT TAB(38)"Centre to";TAB(50)"Enclosed";TAB(65)"Area"
- 460 PRINT TAB(2)"Sides";TAB(14)"each side";TAB(26);"each side";
- 470 PRINT TAB(38)"ea.corner";TAB(50)" Area ";TAB(62)" Factor "
- 480 FOR N=3 TO 16
- 490 S=L/N 'length of side
- 500 K=PI/N 'angle in rad of 1/2 segment
- 510 RS=S/2/TAN(K) 'distance to side
- 520 RP=S/2/SIN(K) 'distance to corner
- 530 A=N*S*RS/2
- 540 PRINT USING "####";N;
- 550 PRINT STRING$(8,".");
- 560 PRINT TAB(13);USING U$;S;
- 570 PRINT TAB(25);USING U$;RS;
- 580 PRINT TAB(37);USING U$;RP;
- 590 PRINT TAB(48);USING V$;A;
- 600 PRINT UM$;"<UNK! {FD22}>;TAB(62);USING "####.## %";A/AC*100
- 610 NEXT N
- 620 IF UM=1 THEN D$="feet"ELSE D$="metres"
- 630 COLOR 0,7:LOCATE 24,26
- 640 PRINT " All dimensions are in ";D$;" ";
- 650 COLOR 7,0
- 660 GOSUB 1070:GOTO 140
- 670 '
- 680 '.....preface
- 690 T=7
- 700 PRINT TAB(T);
- 710 PRINT "The Loop Skywire is a multi-band HF antenna consisting of a single"
- 720 PRINT TAB(T);
- 730 PRINT "horizontal full-wave wire loop, fed by either coaxial or open-wire"
- 740 PRINT TAB(T);
- 750 PRINT "line. It requires no pruning and exhibits quite acceptable bandwidth"
- 760 PRINT TAB(T);
- 770 PRINT "and SWR characteristics, especially if a transmatch is used. For"
- 780 PRINT TAB(T);
- 790 PRINT "more details see any recent edition of The ARRL ANTENNA BOOK."
- 800 PRINT
- 810 PRINT TAB(T);
- 820 PRINT "This program computes dimensions of regular polygons wherein all"
- 830 PRINT TAB(T);
- 840 PRINT "sides are equal and joined to each other at the same angle. These"
- 850 PRINT TAB(T);
- 860 PRINT "dimensions are useful in the preliminary design of practical loops,"
- 870 PRINT TAB(T);
- 880 PRINT "even though their final shapes will rarely be perfect polygons."
- 890 PRINT TAB(T);
- 900 PRINT "Maximum enclosed space within the wire loop is the fundamental rule."
- 910 PRINT
- 920 PRINT TAB(T);
- 930 PRINT "The most efficient loop is a perfect circle. All other shapes have"
- 940 PRINT TAB(T);
- 950 PRINT "less enclosed space. As a general rule, the more sides a polygon has"
- 960 PRINT TAB(T);
- 970 PRINT "and the more regular its shape, the more space it encloses for any"
- 980 PRINT TAB(T);
- 990 PRINT "given periphery."
- 1000 PRINT
- 1010 PRINT TAB(T);
- 1020 PRINT"The program computes dimensions for a circular loop and several"
- 1030 PRINT TAB(T);
- 1040 PRINT "polygons, including equilateral triangles and squares."
- 1050 RETURN
- 1060 '
- 1070 'HARDCOPY
- 1080 GOSUB 1190:LOCATE 25,2:COLOR 14,6
- 1090 PRINT " Press 1 to print screen, 2 to print screen & ";
- 1100 PRINT "advance paper, or 3 to continue.";:COLOR 7,0
- 1110 Z$=INKEY$:IF Z$="3"THEN GOSUB 1190:RETURN
- 1120 IF Z$="1"OR Z$="2"THEN GOSUB 1190:GOTO 1140
- 1130 GOTO 1110
- 1140 FOR QX=1 TO 24:FOR QY=1 TO 80
- 1150 LPRINT CHR$(SCREEN(QX,QY));
- 1160 NEXT QY:NEXT QX
- 1170 IF Z$="2"THEN LPRINT CHR$(12)
- 1180 GOTO 1080
- 1190 LOCATE 25,1:PRINT STRING$(80,32);:RETURN
-